package com.jinzhi.jzweb.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 
 * <pre>
 * 资源章节表
 * </pre>
 * <small> 2023-12-07 10:56:14 | lance</small>
 */
@Data
@SuppressWarnings("serial")
@TableName("jz_zyk_resources_chapters")
//这是的这里继承的基础服务类，有几个基本字段
public class ZykResourcesChaptersDO implements Serializable {
	@TableId
	private Long id;

    /** 章节标题 */
    @TableField("name")
    private String name;

    /** 父级id，顶级为jz_zyk_management_resources表id */
    @TableField("paren_id")
    private String parenId;

    /** 层级（1，2，3...） */
    @TableField("level")
    private Integer level;

    /**
     * 顶级id
     */
    @TableField("management_resources_id")
    private String managementResourcesId;

    /** 排序 */
    @TableField("sort")
    private Integer sort;

    /** 创建时间 */
    @TableField("creater_date")
    private Date createrDate;

    @TableField("creater_name")
    private String createrName;

    @TableField("update_name")
    private String updateName;

    @TableField("update_date")
    private Date updateDate;

    /** 资源 */
    @TableField(exist = false)
    private List<ZykResourcesDO> resources;

    /** 是否有下一级 */
    @TableField(exist = false)
    private boolean issLevel;


    //视频路径，多个，隔开
    @TableField(exist = false)
    private String spUrls;

    //文档路径，多个，隔开
    @TableField(exist = false)
    private String wdUrls;

    //图片路径，多个，隔开
    @TableField(exist = false)
    private String tpUrls;

    //资源名称
    @TableField(exist = false)
    private String zyNames;

    //资源优先级
    @TableField(exist = false)
    private String zySorts;
}
